import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Vant from 'vant'
import jquery from 'jquery'
import 'vant/lib/index.css'
import  Common   from  './untils/common'
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
ak: '0mbMN3DezVX4vDlfjyI10sUxssvtu4DE'
})
Vue.use(Vant)

import VideoPlayer from 'vue-video-player'
import 'vue-video-player/src/custom-theme.css'
import 'video.js/dist/video-js.css'
  
Vue.use(VideoPlayer)



import echarts from 'echarts'
Vue.prototype.$echarts = echarts

import 'lib-flexible'

Vue.config.productionTip = false

Vue.prototype.Config_ysy = Common //挂载到Vue实例上面

new Vue({
  router,
  jquery,
  render: h => h(App)
}).$mount('#app')


document.addEventListener("UniAppJSBridgeReady", function() {
  if (window.uni) {
    Vue.prototype.$uni = window.uni;
    console.log("引入 uni-jssdk 成功", window.uni);
  }
  if (window.plus) {
    Vue.prototype.$plus = window.plus;
    console.log("引入 plus-jssdk 成功", window.plus);
  }
});